package com.sunk.springboot.bolg.springbootblog.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "t_article")
@Data
public class Article implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private Long id;
    // 标题
    private String title;
    // 文章内容
    private String content;
    // 创建时间
    private Date created;
    // 修改时间
    private Date modified;
    // 文章分类
    private String categories;
    // 标签
    private String tags;
    // 是否允许评论
    @Column(name = "allow_comment")
    private Integer allowComment;
    // 文章缩略图
    private String thumbnail;
}
